package vis.app.controller;

public class EventControl {
	public String actionControl;
	public String visualItemName;
	public String sketchFullName;

	private Object data;

	public EventControl() {
	}

	public EventControl(String actionControl, String visualItemName, String fullClassName) {
		this.actionControl = actionControl;
		this.visualItemName = visualItemName;
		this.sketchFullName = fullClassName;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Object getData() {
		return data;
	}

	public String toString() {
		String sData = "";
		if (data instanceof String[]) {

			for (int i = 0; i < ((String[]) data).length; ++i) {
				sData += ((String[]) data)[i] + "-";
			}
		}
		return "EventControl:" + actionControl + ", "
				+ visualItemName + ","
				+ sketchFullName + sData;
	}
}
